﻿using LightWadf.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LightWadf.Filter
{
    class RestfulFilter : IFilter
    {
        public override object BeforeProcess(System.Web.HttpContext context)
        {
            return null;
        }

        public override void AfterProcess(System.Web.HttpContext context, ref object result)
        {
            if(result != null)
                result = new JsonResult(result);
        }
    }
}
